<?php
/************************FoxPHP威客系统************************/
/*                                                            */
/*  FoxPHP.Com (C)2006-2016 FoxPHP Inc.                       */
/*  This is NOT a freeware, use is subject to license terms   */
/*  FoxPHP威客系统是商业软件,使用于商业用途请购买授权         */
/*  V3.0 2016.3                                               */
/*  foxphp@aliyun.com                                         */
/*  http://www.foxphp.com                                     */
/*                                                            */
/**************************************************************/

namespace Seller\Controller;
use Think\Controller;
class TaskController extends \Member\Controller\IndexController {

    public function indexAction(){

		$model=new \Data\Model\DataOrderModel();
		foreach($model->GetMyOrder(		 	 	 	
				//排序
				array(
					array('order'=>'oid','name'=>'编号'),
					array('order'=>'buyer_uid','name'=>'雇主ID'),
					array('order'=>'buyer_username','name'=>'雇主名称'),
					array('order'=>'subject','name'=>'任务标题'),
					array('order'=>'dateline','name'=>'发布时间'),
					array('order'=>'money','name'=>'中标金额'),
					array('order'=>'process','name'=>'状态')
				),
				array(	
					'process'=>array('process','int'),
					'buyer_uid'=>array('buyer_uid','int'),
					'oid'=>array('oid','int')
				)
			) as $key=>$value){
			$this->assign($key,$value);
		}

		$this->display();	
    }

}